package com.atguigu.eduservice.client.frontClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-order", fallback = OrdersFrontDegradeFeignClient.class)
@Component
public interface OrdersFrontClient {
    @GetMapping("/order/torDer/isBuyCourse/{courseId}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);
}
